Procedures

ProcedureLocationProcedure TypeDescription
add_point_method trajectory_data Subroutine

добавляение новой точнки траектории

alphas lhcd_module Subroutine
approx approximation Subroutine

the data to be approximated.
number of points in the input data.
number of coefficients of decomposition over base functions :

found decomposition coefficients

binary_write_array writer_module Subroutine

сохраняет массивы расределения и скорости

burying_procedure FokkerPlanck1D_mod Subroutine

процедура закапывания

calc_enorm plasma Subroutine

fst(j)=pnxlogjc04/pi4/vt3

calc_max_power_method spectrum_mod Subroutine
calculate_decrements decrements Subroutine

pdec1=-pdecv*dfdv

calculate_dielectric_tensor dielectric_tensor Subroutine

calculate components of dielectric tensor

calculate_dispersion_equation dispersion_equation Subroutine
calculate_metrics metrics Subroutine
calculate_partial_derivatives partial_derivatives Subroutine
chang_cooper_abcoef chang_cooper_module Subroutine
chang_cooper_solver chang_cooper_module Subroutine
chder chebyshev Subroutine

Given a,b,c(1:n), as output from routine chebft(), and given n, the desired degree of approximation (length of c to be used), this routine returns the array cder(1:n), the Chebyshev coefficients of the derivative of the function whose coefficients are c(1:n).

chebev chebyshev Function

Chebyshev evaluation: All arguments are input. c(1:m) is an array of Chebyshev coefficients, the first m elements of c output from chebft (which must have been called with the same a and b). The Chebyshev polynomial evaluated and the result is returned as the function value.

chebft1 chebyshev Subroutine

Chebyshev fit: Given a function func, lower and upper limits of the interval [a,b], and a maximum degree n, this routine computes the n coefficients c(k) such that func(x) approximately = SUMM_(k=1)^(k=n)[c(k)*T(k-1)(y)]-c(1)/2, where y and x are related by (5.8.10). This routine is to be used with moderately large n (e.g., 30 or 50), the array of c’s subsequently to be truncated at the smaller value m such that c(m+1) and subsequent elements are negligible. Parameters: Maximum expected value of n, and ð.

create_vt_grid maxwell Function

создание сетки тепловых скоростей

currlhcd maxwell Function
dfind current Subroutine

! adde=zze(dd/dens(j))weight ! e2perp(i,j)=e2perp(i,j)+adde

Read more…
dhdomega dispersion_module Function

вычисляет znakstart !!! w*dH/dw=wdhdw:

difeq driver_module Subroutine

! зачем save ?????

diff math_module Subroutine
disp2 dispersion_module Subroutine
disp2_ider0 dispersion_module Subroutine
disp2_iroot2 dispersion_module Subroutine

!!! old variant:

Read more…
disp2_iroot3 dispersion_module Subroutine
disp4 dispersion_module Subroutine

!!! pn=fn1(pa,fnr) pn=fn2(pa,fnr,fnrr) !!!!!!!!!!!!!!!!!!!!!!!!!!!!! dl=bs2-4d0asbs

distr iterator_mod Subroutine
divide_spectrum spectrum_mod Subroutine

деление спектра на две части

dql1 driver_module Function

pintld=-pintld4*dfdv

dqliter manager_mod Subroutine

!old variant ! call raspr(v,abs(jr),iv,df) ! if(iv.eq.0) iv=1 !!!!!!!!!!!!!!!!!!!!!!!! dfsr=vdf(vrt-vlf) vsr=v(vrt-vlf) pintld=-dland(i)(dflf+dfrt)/2d0 pdec1=-pdecv*df

driven_current_result_print driven_current_module Subroutine
driven_current_result_save driven_current_module Subroutine
DrivenCurrent driven_current_module Interface
drivencurrent95 drivencurrent95.f90 Subroutine

outj(i) = LH driven current density, MA/m^2 dndt(i) = d^2Jr1/dt^2/E, MA/m^2/sec^2/(V/m), ~runaway d(el.density)/dt/E djdt(i) = dJr2/dt, time drivative of runaway current Jr2, MA/m^2/sec outjrun(i) = LH driven runaway current density, MA/m^2 outnerun(i) = runaway electron density/10^19 m^-3

Read more…
DrivenCurrent_constructor driven_current_module Function
DrivenCurrent_evaluate driven_current_module Subroutine
DrivenCurrentResult driven_current_module Interface
DrivenCurrentResult_constructor driven_current_module Function
driver2 driver_module Subroutine

solve eqs. starting from xbeg ystart(1) = tet ystart(2) = xm x1 = xbeg rini x2 = xend

driver4 driver_module Subroutine

var if(dabs(dydx(3)).ne.zero) h=dabs(hmin1/dydx(3))/hdrob1 if(dabs(y(3)-rexi).gt.rrange.or.nstp.eq.maxstep4) then ! exit !sav2008

dsplnt spline_module Subroutine
erfcc maxwell Function
extd2 driver_module Subroutine
extd4 dispersion_module Subroutine

!!!

fdf approximation Function

вычисление значения полинома и его производной

fdfddf approximation Function

вычисление значения полинома и первой и второй производной

find_achieved_radial_points current Subroutine

find achieved radial points jbeg-jend

find_volums_and_surfaces plasma Subroutine
fmaxw maxwell Function
fmaxw_classic maxwell Function

распределение Максвелла с альфа-частицами и его производная

fmaxw_ext maxwell Function

fn plasma Function

plasma density, cm^-3

fn1 plasma Function

plasma density and its derivative

fn2 plasma Function

plasma density and its first and second derivatives

FokkerPlanck1D FokkerPlanck1D_mod Interface
FokkerPlanck1D_constructor FokkerPlanck1D_mod Function

конструктор для FokkerPlanck1D

FokkerPlanck1D_init_diffusion FokkerPlanck1D_mod Subroutine

инициализация диффузии для схемы савельева

FokkerPlanck1D_init_zero_diffusion FokkerPlanck1D_mod Subroutine
FokkerPlanck1D_print FokkerPlanck1D_mod Subroutine
FokkerPlanck1D_solve_time_step FokkerPlanck1D_mod Subroutine

!!!!!!!!!! solve problem !!!!!!!!!!!!!!!!!!!!!!!!!!

fokkerplanck_compute FokkerPlanck_module Subroutine
fsmoth4 math_module Subroutine
ft plasma Function

electron temperature, erg ft=y ! kev

fti plasma Function

ion temperature, kev

funmaxwell maxwell Function

распределение Максвелла и его производная

fvt plasma Function

нет описания

gaussint plasma Function

что-то про гаусс

get_negative_part_method spectrum_mod Function
get_positive_part_method spectrum_mod Function
gridvel lhcd_module Subroutine

v12<v<=v2

init_diffusion FokkerPlanck_module Subroutine
init_fmaxw_classic maxwell Subroutine
init_fmaxw_ext maxwell Subroutine
init_iteration lhcd_module Subroutine
init_maxwell plasma Subroutine
init_method trajectory_data Subroutine

инициализация траетории

init_parameters plasma Subroutine

!!!!!! ptkev=ft(zero)/0.16d-8 !Te in keV ccurnr=pqepqe0.333d-9/pme

init_plasma plasma Subroutine

variant amy=(btor/q)rho(drho/dr) is a function of "minor radius" r=rh(i). Poloidal magnetic field: B_pol=amy(r)*sqrt(g22/g), where g is determinant of 3D metric tensor and g22 is the (22) element of the tensor, normalized on ABC^4 and ABC^2, correspondingly.

Read more…
init_trajectory trajectory_module Subroutine
init_vi maxwell Subroutine
integral math_module Subroutine
integral_trapez_method spectrum_mod Function

вычисление полной мощности спектра интегрирование методом трапеций

iteration_result_print iteration_result_mod Subroutine
iteration_result_save iteration_result_mod Subroutine

save Iteration Result to file

k2 savelyev_solver_module Function
kinv savelyev_solver_module Function
kinv2 savelyev_solver_module Function
lhcurrent drivencurrent95.f90 Subroutine

implicit real8 (a-h,o-z) write(,) write(,)'ccur',ccur,' curdir=',curdir,' nr=',nr write(,*)'cu_out, MA=',cu_out,' cfull, A=',cfull close(111)

linf lock_module Subroutine

линейная аппроксимация TODO будет удобнее если переделать в функцию

lock lock_module Subroutine

что делает?

lock2 lock_module Subroutine

что делает

lubksb approximation Subroutine
ludcmp approximation Subroutine
make_spline_approximation spectrum_mod Function

approximation of input LH spectrum

manager manager_mod Subroutine
memorize_trajectory_point driver_module Subroutine

memorize trajectory point

memorize_trajectory_point4 driver_module Subroutine
mmid driver_module Subroutine
normalization_method spectrum_mod Subroutine
obeom plasma Function
ourlhcd2017 lhcd_module Subroutine

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!sav2008 pn=fn(r) pn=fn1(r,fnr) pn=fn2(r,fnr,fnrr) !sav2008 !!!!!!!read data !!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!sign of driven current in right coordinate system {dro,dteta,dfi}: !!!curdir=+1.0 for current drive in positive direction "dfi" !!!curdir=-1.0 for current drive in negative direction "dfi" !!!spectrum Nz>0 is along dfi>0 and Nz<0 is along dfi<0 !!!it is also OK if Npar is used instead of Nz, but for Btor>0, that is along dfi>0 curdir=-dble(ispectr) !!!!!!!!!!!!! begin iterations !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! find nevyazka

Read more…
ploshad plasma Function
polin approximation Function
polin1 approximation Function
polin2 approximation Function
psiq maxwell Function

pzextr driver_module Subroutine

polynomial extrapolation

qf savelyev_solver_module Function
read_parameters rt_parameters Subroutine

!!!!!!!!!!! read physical parameters !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! read parameters for alphas calculation !!!!!!!!!!!!!!!!!!! !!!!!!!!!!! read numerical parameters !!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! read options !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! read grill parameters and input LH spectrum !!!!!!!!!!!! !!!!!!!!!!! checking initial parameters !!!!!!!!!!!!!!!!!!!!!!!!!!!!!

read_spectrum spectrum_mod Function
recalculate_f_for_a_new_mesh lhcd_module Subroutine

recalculate f' for a new mesh ! if(vrj(i).gt.vvj(i0)) exit

reset_method trajectory_data Subroutine

сброс счетчика

rini manager_mod Subroutine
rk4 runge_kutta_module Subroutine
rkck runge_kutta_module Subroutine

метод рунге-кутта, нужны подробности

rkqc runge_kutta_module Subroutine
rmink savelyev_solver_module Function
rmink2 savelyev_solver_module Function
rplusk savelyev_solver_module Function
rplusk2 savelyev_solver_module Function
rs savelyev_solver_module Function
runge_kutta_qs runge_kutta_module Subroutine

метод рунге-кутта

rzextr driver_module Subroutine

rational extrapolation зачем save ????

savelyev_abccoef savelyev_solver_module Subroutine

-- fill abc matrix

savelyev_solver savelyev_solver_module Subroutine

разностная схема Савельева для уравнения Фоккера-Планка

show_constants constants Subroutine
show_parameters rt_parameters Subroutine
source_new source_new_mod Subroutine
Spectrum spectrum_mod Interface
spectrum_constructor spectrum_mod Function
splne spline_module Subroutine
splnt spline_module Subroutine
sys_time utils Function
Time_start utils Subroutine
Time_stop utils Subroutine
Time_stop_and_save utils Subroutine
tracing trajectory_module Subroutine
tridag savelyev_solver_module Subroutine

создает трехдиагональнйю матрицу

view trajectory_module Subroutine

!writing trajectories into a file pintld=-dland(i)(dflf+dfrt)/2d0 pdec1=-pdecvdf

write_array writer_module Subroutine
write_distribution writer_module Subroutine
write_info_method trajectory_data Subroutine

сохранение в файл информации о траектории

write_lcms plasma Subroutine

write lcms

write_matrix writer_module Subroutine
write_plasma plasma Subroutine
write_spectrum spectrum_mod Subroutine

write spectrum to file

write_v_array writer_module Subroutine

сохраняет массивы расределения и скорости

write_x_array writer_module Subroutine
zatukh decrements Function
zefff plasma Function

z_effective profile